package com.hollis公众号.为什么说Java中只有值传递;

public class StringDemo {

	public static void main(String[] args) {
		StringDemo pt = new StringDemo();

		String name = "Hollis";
		pt.pass(name);
		System.out.println("print in main , name is " + name);
	}

	public void pass(String name) {
		name = "hollischuang";
		System.out.println("print in pass , name is " + name);
	}

}
